package cn.iocoder.yudao.module.member.service.user;

import cn.hutool.core.collection.CollectionUtil;
import cn.iocoder.yudao.module.member.controller.app.user.vo.AppMemberUserPriceUpdateReqVO;
import cn.iocoder.yudao.module.member.convert.user.MemberUserPriceConvert;
import cn.iocoder.yudao.module.member.dal.dataobject.user.MemberUserPriceDetailDo;
import cn.iocoder.yudao.module.member.dal.dataobject.user.MemberUserPriceDo;
import cn.iocoder.yudao.module.member.dal.mysql.user.MemberUserPriceDetailMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;

@Service
@Valid
@Slf4j
public class MemberUserDetailPriceServiceImpl implements MemberUserPriceDetailService{

    @Resource
    private MemberUserPriceDetailMapper memberUserPriceDetailMapper;
    /**
     * 通过用户查询单独的价格配置
     *
     * @param userId 手机
     * @return 用户对象
     */
    @Override
    public List<MemberUserPriceDetailDo> getUserByUserId(Long userId) {
        return memberUserPriceDetailMapper.selectByUserId(userId);
    }



}
